package com.youbug.mall.thirdpart.feign.impl;

import com.youbug.common.vo.R;
import com.youbug.mall.auth.feign.IThirdPartFeignService;
import com.youbug.mall.thirdpart.component.SmsComponent;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class ThirdPartFeignServiceImpl implements IThirdPartFeignService {

    @Resource
    private SmsComponent smsComponent;

    @Override
    public R sendCode(String phone, String code) {
        smsComponent.sendCode(phone, code);
        return R.ok();
    }
}
